﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WZ.Entity
{
    /// <summary>
    /// 经营指标
    /// 数据来源:http://f10.eastmoney.com/f10_v2/OperationsRequired.aspx?code=sz300036
    /// </summary>
    public class CompanyManagement
    {
        public string CompanyCode { get; set; }
        public List<CMProductInfo> cmProductInfo { get; set; }
        /// <summary>
        /// 公司收入
        /// </summary>
        public double CompanyIncome { get; set; }
        /// <summary>
        /// 公司成本
        /// </summary>
        public double CompanyCost { get; set; }
        /// <summary>
        /// 公司利润
        /// </summary>
        public double CompanyProfit { get; set; }
        /// <summary>
        /// 公司毛利率
        /// </summary>
        public double CompanyGrossMargin { get; set; }
    }

    public enum ECMAnalysisType
    {
        产品,
        行业,
        地区
    }

    public class CMProductInfo
    {
        public ECMAnalysisType eCMAnalysisType { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品收入
        /// </summary>
        public double ProductIncome { get; set; }
        /// <summary>
        /// 收入占比
        /// </summary>
        public double IncomeCompare { get; set; }
        /// <summary>
        /// 产品成本
        /// </summary>
        public double ProductCost { get; set; }
        /// <summary>
        /// 收入占比
        /// </summary>
        public double CostCompare { get; set; }
        /// <summary>
        /// 产品利润
        /// </summary>
        public double ProductProfit { get; set; }
        /// <summary>
        /// 利润占比
        /// </summary>
        public double ProfitCompare { get; set; }
        /// <summary>
        /// 产品毛利率
        /// </summary>
        public double ProductGrossMargin { get; set; }
    }
}
